/*
 * =====================================================================================
 *
 *       Filename:  singleton.h
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  02/16/2011 01:53:41 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  dp (8023), dp8023@gmail.com
 *        Company:  
 *
 * =====================================================================================
 */

#ifndef _SINGLETON_H_
#define _SINGLETON_H_

#include <string>

using namespace std;

class singleton
{
	public:
		~singleton(){}
		static singleton *instance();
		void print(const string &str);

	private:
		singleton(){}
		static singleton *get_inst;
		class cleaner
		{
			public:
				cleaner(){}
				~cleaner();
		};
};

#endif

